﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ENail.Domain.Core;
using ENail.Domain.Core.Contract.Services;
using ENail.Portal.Web.Models;
namespace ENail.Portal.Web.Controllers
{
    public class SocialNetworkController : Controller
    {
        private readonly ITaskService _taskService;
        private TaskManager _taskManager;
        public SocialNetworkController(ITaskService taskService)
        {
            _taskService = taskService;
            _taskManager = new TaskManager(_taskService);
        }
        //
        // GET: /SocialNetwork/

        public ActionResult Index()
        {
            return View();
        }
        #region View Task
        [ActionName("InitializeTask")]
        [AcceptVerbs(HttpVerbs.Get | HttpVerbs.Post | HttpVerbs.Head)]

        public ActionResult InitializeTask()
        {
            return PartialView("_Task", _taskManager.GetTaskModel());
        }
        #endregion
    }
}
